"use client"

import { Stack } from "expo-router"
import { MessageProvider } from "../components/ui/message/message-context"
import { MessageInitializer } from "../components/ui/message/message-initializer"
import { BookProvider } from "@/db/book-context"

export default function RootLayout() {
    return (
        <MessageProvider>
            <MessageInitializer />
            <BookProvider>
                <Stack screenOptions={{ headerShown: false }}>
                    <Stack.Screen name="(tabs)" options={{ headerShown: false }} />
                </Stack>
            </BookProvider>
        </MessageProvider>
    )
}

